package com.alan.test.base;

import android.graphics.Color;
import android.os.Bundle;

import androidx.annotation.Nullable;

import com.alan.base.config.SystemUIConfig;
import com.alan.base.ui.BaseActivity;

public class StatusBarActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_translate);
        new SystemUIConfig(this).setStatusBarColor(Color.RED, -1);

        SystemUIConfig systemUIConfig = new SystemUIConfig(this);
        // 设置默认样式
        systemUIConfig.setDefaultSystemUI();
        // 设置状态栏红色背景 导航栏透明
        systemUIConfig.setStatusBarColor(Color.RED,Color.TRANSPARENT);
        // 穿透状态栏
        systemUIConfig.setTranslate();
        // 设置状态栏深色图标
        systemUIConfig.setStatusBarIconBlack();


    }
}
